package wechat.handler.request.webauth;

import wechat.handler.bean.request.webauth.WebAuthAccesstokenBean;

public interface IWebAuth {
	/**
	 * 通过code获取网页授权Accesstoken
	 * @param code
	 * @return
	 * @throws Exception
	 */
	public WebAuthAccesstokenBean getWebAccesstoken(String code) throws Exception;
	
	/**
	 * 通过appid和code获取网页授权Accesstoken
	 * @param appid
	 * @param code
	 * @return
	 * @throws Exception
	 */
	public WebAuthAccesstokenBean getWebAccesstoken(String appid ,String code) throws Exception;
	/**
	 * 获取JSTicket
	 * @return
	 * @throws Exception
	 */
	public String getJSTicket() throws Exception;
	
	/**
	 * 通过appid获取指定的JSTicket
	 * @param appid
	 * @return
	 * @throws Exception
	 */
	public String getJSTicket(String appid) throws Exception;
}
